<%@ page import="java.util.List" %>
<%@ page import="com.cn.zpark.beans.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">s
    <title></title>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="10">
    <tr>
        <th>ID</th>
        <th>uname</th>
        <th>pwd</th>
    </tr>
   <%
        // 获取请求域中的绑定数据
       List<User> users = (List<User>) request.getAttribute("users");

       // 循环展示数据
       for (User user : users) {
           out.println("<tr>");

           out.println("<td>"+user.getId()+"</td>");
           out.println("<td>"+user.getUname()+"</td>");
           out.println("<td>"+user.getPwd()+"</td>");

           out.println("</tr>");
       }
   %>
</table>
</body>
</html>
